package com.koron.order.question.mapper;

import com.koron.order.question.bean.po.QuestionPo;
import com.koron.order.question.bean.query.QuestionQuery;
import com.koron.order.question.bean.vo.QuestionVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 重大问题上报单(Question)表数据库访问层
 *
 * @author zhouj
 * @since 2022-01-14 10:15:28
 */
public interface QuestionMapper {

    int insertOrUpdate(QuestionPo question);

    int insertOrUpdateBatch(@Param("list") List<QuestionPo> questionList);

    int insert(QuestionPo question);

    int insertBatch(@Param("list") List<QuestionPo> questionList);

    int update(QuestionPo question);

    int deleteById(String id);

    QuestionPo queryById(String id);

    List<QuestionVo> queryList(QuestionQuery questionQuery);

}